package com.renwu.edu.info.manager.entry;

import com.renwu.edu.info.manager.controller.StudentController;
import com.renwu.edu.info.manager.controller.TeacherController;

import java.util.Scanner;

public class InfoManagerEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("---------------欢迎来到壬午的管理系统---------------");
            System.out.print("1.进入学生管理系统\t\t");
            System.out.print("2.进入教师管理系统\t\t");
            System.out.println("3.退出");
            System.out.println("请输入你的选择:");
            int chose = sc.nextInt();
            switch (chose) {
                case 1:
//                System.out.println("学生管理系统");
                    StudentController studentController = new StudentController();
                    studentController.start();
                    break;
                case 2:
                    //System.out.println("教师管理系统");
                    TeacherController teacherController = new TeacherController();
                    teacherController.start();
                    break;
                case 3:
                    System.out.println("欢迎你的使用，再见");
                    System.exit(0);
                    break;
                default:
                    System.out.println("你的输入有误，请重新输入");
            }
        }
    }
}
